#include <iostream>
using namespace std;

int main() {
    char name[20];
    char team[25];
    int age;
    int num_kids;
    char temp[10];

    cout << "输入姓名: ";
    cin.getline(name, 20);

    cout << "输入年龄: ";
    cin.getline(temp, 10);
    age = atoi(temp);       // 允许前后有空格

    cout << "最喜欢的球队: ";
    cin.getline(team, 24);

    cout << "有几个孩子: ";
    cin.getline(temp, 10);
    num_kids = atoi(temp);

    cout << name
        << ", 你的球队是 " << team
        << ", 年龄为 " << age
        << ", 孩子数量为 " << num_kids << "\n";
}
